package com.hh.item.service;

import com.hh.item.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author yangfan
 * @date 2020/3/7 13:56
 * @description
 */
public interface IUserService {

    User login(String userName, String userPwd);

    String check(String userName);

    String regist(User user);

    String update(User user);

    String searchUser(String userId, String searchText);

    String follow(String userId, String targetId);

    String unfollow(String userId, String targetId);

    User edit(String oldName, String userName, String userPwd, Integer userSex);

    User getMine(Integer userId);

    List<User> getFollow(Integer userId);

    List<User> getFans(Integer userId);

    List<User> searchAllNameAndId();






    /*List<User> findAll();

    int save(User user);

    int updateUserById(User user);

    int deleteUserById(Integer id);

    User findUserById(Integer id);

    Map<String, String> refresh(String userId);

    Map<String, Object> refreshf(String userId, String targetId);

    List<User> testTk();*/
}
